// import UBT from '@/libs/ubt';
import Vue from 'vue';

// export default new UBT({
//   domain: 'pinjamanrp',
//   version: '1.3.0'
// });
import Hybrid from '@/components/uzone-hybrid';
import detect from '@/libs/detect';

// const hybrid = new Hybrid(detect.os.android ? 'android' : 'ios');
const $vue = new Vue();

export default {
  eeLogUBT(action, event, properties) {
    $vue.$hybrid.action('ee', { content: event });
  },
  afLogUBT(action, event, properties) {
    $vue.$hybrid.action('af', { content: {'event': event, 'type': action} });
  },
  firebaseLogUBT(action, event, properties) {
    $vue.$hybrid.action('firebase', { content: event });
  },
  facebookLogUBT(action, event, properties) {
    $vue.$hybrid.action('facebook', { content: event });
  }
}
